package com.cw.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * V_YQ_BRDJXX
 *
 * @author ly
 */
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "查询院前准备主表")
@TableName("HIS.V_YQ_BRDJXX")
@Getter
@Setter
public class VYqBrdjxx implements Serializable {

    @TableField("CARD_NO")
    private String cardNo;

    @TableField("NAME")
    private String name;

    @TableField("SEX")
    private String sex;

    @TableField("BIRTHDAY")
    private Date birthday;

    @TableField("DEPT_CODE")
    private String deptCode;

    @TableField("DEPT_NAME")
    private String deptName;

    @TableField("SDEPT_CODE")
    private String sdeptCode;

    @TableField("PAYKIND_CODE")
    private String paykindCode;

    @TableField("PACT_CODE")
    private String pactCode;

    @TableField("BED_NO")
    private String bedNo;

    @TableField("NURSE_CELL_CODE")
    private String nurseCellCode;

    @TableField("OPER_DTIME")
    private Date operDtime;

    @TableField("OPER_CODE")
    private String operCode;

    @TableField("PREPAY_COST")
    private BigDecimal prepayCost;

    @TableField("IDENNO")
    private String idenno;

    @TableField("PROF_CODE")
    private String profCode;

    @TableField("WORK_NAME")
    private String workName;

    @TableField("WORK_TEL")
    private String workTel;

    @TableField("HOME")
    private String home;

    @TableField("HOME_TEL")
    private String homeTel;

    @TableField("DIST")
    private String dist;

    @TableField("BIRTH_AREA")
    private String birthArea;

    @TableField("NATION_CODE")
    private String nationCode;

    @TableField("LINKMA_NAME")
    private String linkmaName;

    @TableField("LINKMAN_TEL")
    private String linkmanTel;

    @TableField("LINKMAN_ADD")
    private String linkmanAdd;

    @TableField("RELA_CODE")
    private String relaCode;

    @TableField("MARI")
    private String mari;

    @TableField("COUN_CODE")
    private String counCode;

    @TableField("MCARD_NO")
    private String mcardNo;

    @TableField("PREDATE")
    private Date predate;

    @TableField("PREDOCT_CODE")
    private String predoctCode;

    @TableField("DIAG_CODE")
    private String diagCode;

    @TableField("DIAG_NAME")
    private String diagName;

    @TableField("PRE_STATE")
    private String preState;

    @TableField("IN_STATE")
    private String inState;

    @TableField("BEIZHU")
    private String beizhu;

    @TableField("IF_INHOS")
    private String ifInhos;

    @TableField("IF_INHOS_PLAN")
    private String ifInhosPlan;

    @TableField("IF_INHOS_EXTERNAL")
    private String ifInhosExternal;

    @TableField("IF_EMERGENCY")
    private String ifEmergency;

    @TableField("IF_WALK")
    private String ifWalk;

    @TableField("IF_CHAIR")
    private String ifChair;

    @TableField("IF_AMBULANCE")
    private String ifAmbulance;

    @TableField("IF_RJBF")
    private String ifRjbf;

    @TableField("CLINIC_CODE")
    private String clinicCode;

    @TableField("PATIENT_TAG")
    private String patientTag;

    @TableField("INPATIENT_NO")
    private String inpatientNo;

    @TableField("RY_TIME")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date ryTime;

    @TableField("RY_CODE")
    private String ryCode;

    @TableField("PREID")
    private BigDecimal preid;

    @TableField("CANCELTIME")
    private Date cancelTime;

    @TableField("readyTime")
    private Date readyTime;

    @TableField("zlzz")
    private String zlzz;

    @TableField("MSZD")
    private String mszd;

    @TableField("TZ_TIME")
    private Date tzTime;

    @TableField("TZ_CODE")
    private String tzCode;

    @TableField("REGISTE_STATUS")
    private String registeStatus;

    @TableField("IS_MANUAL")
    private String isManual;

    @TableField("EMPL_NAME")
    private String emplName;

    @TableField("RYZT")
    private String ryzt;

    @TableField("RYXB")
    private String ryxb;

    @TableField("YBLX")
    private String yblx;

    @TableField("wzxs")
    private BigDecimal wzxs;

    @TableField("yzxs")
    private BigDecimal yzxs;

    @TableField("rynl")
    private BigDecimal rynl;

    @TableField("YYRQ")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private String yyrq;

    @TableField("RYRQ")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private String ryrq;

    @TableField("CYRQ")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private String cyrq;

    @TableField("QXSJ")
    private String qxsj;

    @TableField("CZSJ")
    private String czsj;

    @TableField("YYSJ")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private String yysj;

    @TableField("CREATETIME")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private String createTime;

    @TableField("ZTPX")
    private BigDecimal ztpx;

    @TableField("lxdh")
    private String lxdh;

    @TableField("ZYTS")
    private BigDecimal zyts;

    @TableField("PATIENT_NO_SZ")
    private String patientNoSz;

    @TableField("NURSE_CELL_NAME")
    private String nurseCellName;

    @TableField("BED_NO_IN")
    private String bedNoIn;

    @TableField(exist = false)
    private String age;

    @TableField(exist = false)
    @ApiModelProperty(hidden = true, name = "用于查检验信息的集合")
    private List<String> lisApplys;

    @TableField(exist = false)
    @ApiModelProperty(value = "检查集合", hidden = true)
    private List<ErApplyOut> erApplyOuts;

    @TableField(exist = false)
    @ApiModelProperty(value = "进度")
    private String progress;

    @TableField(exist = false)
    @ApiModelProperty(value = "已检查")
    private String doit;

    @TableField(exist = false)
    @ApiModelProperty(value = "未检查")
    private String total;

    @ApiModelProperty("0未登记 1已登记")
    @TableField(exist = false)
    private String state;
    private static final long serialVersionUID = 1L;
    
    @TableField(exist = false)
    @ApiModelProperty("0异地医保 1苏州医保")
    private Integer medicalInsuranceFlag;
}